package com.supermap.dubbo.api.cloud.assets.comm;

import com.supermap.dataservice.util.JSONUtils;

/**
 * @author aqua
 * @description
 * @date 2019年10月18 15:33
 * @email 1301584033@qq.com
 */
public interface CommService {


    /**
    * @descrpt: 分页查询商品
    * @param: [name, stype, page, size] 
    * @return: com.supermap.dataservice.util.JSONUtils 
    * @author: chenchao
    * @date: 2019/10/18 
    * @mail chenchaoaqua@qq.com
    */ 
    JSONUtils getCommodityPageList(String name,Integer stype,Integer parenId,Integer page,Integer size);

    
    /** 
    * @descrpt: 添加 
    * @param: [stype, name, parenId, unit, conctent] 
    * @return: com.supermap.dataservice.util.JSONUtils 
    * @author: chenchao
    * @date: 2019/10/18 
    * @mail chenchaoaqua@qq.com
    */ 
    JSONUtils putCommodity(Integer stype,String name,Integer parenId,Double price,String unit,String conctent);

    /** 
    * @descrpt: 物资删除
    * @param: [id] 
    * @return: com.supermap.dataservice.util.JSONUtils 
    * @author: chenchao
    * @date: 2019/10/18 
    * @mail chenchaoaqua@qq.com
    */ 
    JSONUtils delCommodity(Integer id);



    /** 
    * @descrpt: 物资盘点
    * @param: [] 
    * @return: com.supermap.dataservice.util.JSONUtils 
    * @author: chenchao
    * @date: 2019/10/18 
    * @mail chenchaoaqua@qq.com
    */ 
    JSONUtils getCommodityCountList(Integer pId,Integer limit);


    /**
     * @descrpt: 物资分页查询商品
     * @param: [name, stype, page, size]
     * @return: com.supermap.dataservice.util.JSONUtils
     * @author: chenchao
     * @date: 2019/10/18
     * @mail chenchaoaqua@qq.com
     */
    JSONUtils getCommodityUsePageList(String name,Integer state,Integer page,Integer size);

    /**
     * @descrpt: 添加
     * @param: [name, stype, page, size]
     * @return: com.supermap.dataservice.util.JSONUtils
     * @author: chenchao
     * @date: 2019/10/18
     * @mail chenchaoaqua@qq.com
     */
    JSONUtils insertComm(Comm comm);

    /**
     * @descrpt: 审核
     * @param: [scontent, state]
     * @return: com.supermap.dataservice.util.JSONUtils
     * @author: chenchao
     * @date: 2019/10/18
     * @mail chenchaoaqua@qq.com
     */
    JSONUtils commodityAudit(Integer id,String scontent,String suerId,Integer state);


}
